

<!-- <script language="javascript">
	$(document).ready(function () {
		//设置modal垂直居中,移动
		modalSetting(".modal"); 
	});
</script> -->
<div id="main">
	<input type="hidden" id="admin_id" value="{$Think.session.admin.id}">
	<div class="container-fluid">
	  	<div class="row clearfix">
		    <div class="col-md-12 column" id="mainalert">
		      	<div class="alert alert-dismissable alert-info">
		        	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		        	<h4> 信息框 </h4>
		        	<p></p>
		      	</div>
		    </div>
	  	</div>
	   
	   
	  	<div class="ntDesktop">
	  		{if $isshow == 1}
	  			<div class="ntDesktop-head">配货界面（仓管员）</div>
	  		{/if}
			<div class="row" style="padding-top:0px">
				<div class="col-md-6">
					<ul class="nav nav-tabs">
						<li class="active" @click="getList('list')">
							<a href="#list" data-toggle="tab" >
								新订单 <span class="label label-info" v-show=" navPromptNum.listNum > 0 ">{{navPromptNum.listNum}}</span>
							</a>
						</li>
						<li @click="getList('pickuping')">
							<a href="#pickuping" data-toggle="tab">
								提货中 <span class="label label-info" v-show=" navPromptNum.pickupingNum > 0 ">{{navPromptNum.pickupingNum}}</span>
							</a>
						</li>
						<li @click="getList('pauseing')">
							<a href="#pauseing" data-toggle="tab"> 
								暂停中 <span class="label label-info"  v-show=" navPromptNum.pauseingNum > 0 ">{{navPromptNum.pauseingNum}}</span>
							</a>
						</li>
						<li @click="getList('finish')">
							<a href="#finish" data-toggle="tab">
								已完成 <span class="label label-info" v-show=" navPromptNum.finishNum > 0 ">{{navPromptNum.finishNum}}</span>
							</a>
						</li>
						<li @click="getList('cancel')">
							<a href="#cancel" data-toggle="tab">
								取消 <span class="label label-info"  v-show=" navPromptNum.cancelNum > 0 ">{{navPromptNum.cancelNum}}</span>
							</a>
						</li>
					</ul>
				</div>
				{if $isshow==1}
				<div class="col-md-4">
					<button class="btn btn-default btn-checkbox" @click="onlyMeWork" >
						<input type="checkbox" class="form-input" :value="status"> 只显示我的工作
					</button>
				</div>
				<div class="col-md-2 text-right" v-if="requestType == 'list'">
					<button class="btn btn-primary" data-target="#pickup_startModal" @click="clickPickup(2)" v-if="auth_ids.indexOf(322) != -1">
						 <span class="fa fa-dolly-flatbed"></span> 开始提货
					</button>
				</div>
				{/if}
			</div>


			<div class="row tab-content">

				<!-- 提货 新订单 列表 -->
				<div class="col-md-12 tab-pane active" id="list">
					<table class="table table-striped table-hover ntTable">
						<thead>
							<tr>
								<th width="4%">订单号</th>
								<th width="4%">优先级</th>
								<th width="4%">时间</th>
								<th></th>
								<th width="20%">产品</th>
								<th>箱规</th>
								<th>数量</th>
								<th>库存</th>
								<th>目的地</th>
								<th>指令</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<template v-if="list != undefined && list.length > 0">
								<template v-for="(listItem,listIndex) in list">
									<tr v-for="(listDetailItem,listDetailIndex) in listItem">
										<template v-if="listDetailIndex == 0">
											<td>{{listItem.sale_id ? formatUnit(listDetailItem.sale_id,'id') : listDetailItem.targetName }}</td>
											<td align="center"><span class="label label-info f-1">{{listDetailItem.priority}}</span></td>
											<!-- <td class="text-success" align="center"><b>{{listDetailItem.create_at}}</b></td>	 -->
											<td class="text-success main-list" :oldTime="listDetailItem.create_at"><b></b></td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>
										
										{if $isshow==1}
										<td align="center"><input type="checkbox" name="pickupDetailCheck" :value="listDetailIndex" :listKey='listIndex' :prochar_id="listDetailItem.proInfo.prochar_id"></td>
										{/if}
										
										<td>
											<div class="pro">
												<div class="pro-icon">
													<img :src="listDetailItem.proInfo.img_url" border="0" width="48px" height="48px">
												</div>
												<div class="pro-name">
													<small>{{formatUnit(listDetailItem.proInfo.prochar_id,'id') + (listDetailItem.proInfo.brand_name ? ' / '+listDetailItem.proInfo.brand_name : '') + (listDetailItem.proInfo.model ? ' / '+listDetailItem.proInfo.model : '') }}</small> <br />{{listDetailItem.proInfo.pro_name}}
												</div>
											</div>
										</td>
										<td align="right">
											{{listDetailItem.proInfo.prochar_qty}}<small class="unit">PCS/CTN</small><br>
											{{listDetailItem.proInfo.ctn_size}}<small class="unit">CM</small>
										</td>
										<td align="right">
											<span class="label label-default f-1">{{listDetailItem.qty/listDetailItem.proInfo.prochar_qty}}</span><small class="unit">CTN</small><br>
											{{listDetailItem.qty}}<small class="unit">PCS</small>
										</td>
										<td>
											<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="库存位置" @mouseover="setpopper">
												库存
												<div class="content" style="display: none;">
													<div style="width:12vw">
														<table class="table">
															<tbody>
																<tr>
																	<td>{{listDetailItem.storeInfo.store.name}}</td>
																	<td align="right">
																		{{formatUnit( (listDetailItem.storeInfo.store.qty/listDetailItem.proInfo.prochar_qty) ,'CTN')}}<small class="unit">CTN</small>
																	</td>
																	<td align="right">{{formatUnit( listDetailItem.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
																</tr>

																<tr v-for="(storeInfoItem,storeInfoIndex) in listDetailItem.storeInfo.detail">
																	<td>{{storeInfoItem.name}}</td>
																	<td align="right">
																		{{formatUnit( (storeInfoItem.qty/listDetailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																	</td>
																	<td align="right">{{formatUnit( (storeInfoItem.qty ? storeInfoItem.qty : 0),'PCS')}}<small class="unit">PCS</small></td>
																</tr>

															</tbody>
														</table>
													</div>
												</div>
											</button>
										</td>
										<td>{{listDetailItem.warehouseArea_name}}</td>
										<td>{{listDetailItem.create_name}}<br><small>{{listDetailItem.create_time}}</small></td>
										<td align="right">
											<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#pickup_startModal" v-if="hasTask == 0 && auth_ids.indexOf(322) != -1" @click="clickPickup(1,listIndex,listDetailIndex)">提货</button>
										</td>
									</tr>
								</template>
							</template>
							<template v-else>
	                            <tr style="text-align: center;" >
	                                <td colspan="11" class="no_date" style="line-height: 20rem">{:lang('no_data')} </td>
	                            </tr>
							</template>
						</tbody>
					</table>
				</div>

				<!-- 配货 提货中 列表 -->
				<div class="col-md-12 tab-pane" id="pickuping" v-show="requestType == 'pickuping'">
					<table class="table table-striped table-hover ntTable">
						<thead>
							<tr>
								<th width="4%">提货号</th>
								<th width="20%">产品</th>
								<th>箱规</th>
								<th width="6%">订单号</th>
								<th>数量</th>
								<th>合计</th>
								<th>目的地</th>
								<th>库存</th>
								<th>提货员</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<template v-if="pickuping != undefined && pickuping.length > 0">
								<template v-for="(listItem,listIndex) in pickuping">
									<tr v-for="(detailItem,detailIndex) in listItem.detail">
										<template v-if="detailIndex == 0">
											<td>{{formatUnit(listItem.id,'id')}}</td>
											<td>
												<div class="pro">
													<div class="pro-icon">
														<img :src="detailItem.proInfo.img_url" border="0" width="48px" height="48px">
													</div>
													<div class="pro-name">
														<small>{{formatUnit(detailItem.proInfo.prochar_id,'id') + (detailItem.proInfo.brand_name ? ' / '+detailItem.proInfo.brand_name : '') + (detailItem.proInfo.model ? ' / '+detailItem.proInfo.model : '') }}</small> <br />{{detailItem.proInfo.pro_name}}
													</div>
												</div>
											</td>
											<td align="right">
												{{formatUnit( detailItem.proInfo.prochar_qty,'CTN')}}<small class="unit">PCS/CTN</small><br>
												{{detailItem.proInfo.ctn_size}}<small class="unit">CM</small>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>

										<td>{{detailItem.sale_id ? formatUnit(detailItem.sale_id,'id') : detailItem.targetName }}</td>
										<td align="right">
											<span class="label label-default f-1">{{formatUnit( Math.floor(detailItem.qty/detailItem.proInfo.prochar_qty),'CTN') }}</span><small class="unit">CTN</small><br>
											 {{formatUnit( (detailItem.qty - Math.floor(detailItem.qty/detailItem.proInfo.prochar_qty)*detailItem.proInfo.prochar_qty),'PCS') }}<small class="unit">PCS</small>
										</td>

										<template v-if="detailIndex == 0">
											<td align="right">
												<span class="text-primary f-2">{{formatUnit( Math.floor(listItem.qty_sum/detailItem.proInfo.prochar_qty),'ctn')}}</span><small class="unit">CTN</small><br>
												{{formatUnit( listItem.qty_sum - (Math.floor(listItem.qty_sum/detailItem.proInfo.prochar_qty)*detailItem.proInfo.prochar_qty),'PCS')}}<small class="unit">PCS</small>
											</td>
										</template>
										<template v-else>
											<td></td>
										</template>

										<td>{{detailItem.warehouseArea_name}}</td>

										<template v-if="detailIndex == 0">
											<td>
												<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="库存位置" @mouseover="setpopper">
													库存
													<div class="content" style="display: none;">
														<div style="width:12vw">
															<table class="table">
																<tbody>
																	<tr>
																		<td>{{detailItem.storeInfo.store.name}}</td>
																		<td align="right">
																			{{formatUnit( (detailItem.storeInfo.store.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( detailItem.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																	<tr v-for="(storeInfoItem,storeInfoIndex) in detailItem.storeInfo.detail">
																		<td>{{storeInfoItem.name}}</td>
																		<td align="right">
																			{{formatUnit( (storeInfoItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>
																</tbody>
															</table>
														</div>
													</div>
												</button>
											</td>
											<td>{{listItem.create_name}}<br><small>{{listItem.create_time}}</small></td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
										</template>
										<td align="right">
											<button class="btn btn-sm btn-default" data-toggle="modal" data-target="#pickup_viewModal" @click="clickCheck(listIndex,'pickuping')">查看</button>
											<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#pickup_finishModal" @click="savePickupingFulfil('view',listIndex)" v-if="auth_ids.indexOf(323) != -1">完成</button>
											<button class="btn btn-sm btn-warning" data-toggle="modal" data-target="#pickup_lostModal" @click="pickupMissing(detailItem,'get')" v-if="auth_ids.indexOf(324) != -1">缺货</button>
										</td>
									</tr>
								</template>	
							</template>
							<template v-else>
	                            <tr style="text-align: center;" >
	                                <td colspan="10" class="no_date" style="line-height: 20rem">{:lang('no_data')} </td>
	                            </tr>
							</template>
						</tbody>
						</tbody>
					</table>
				</div>

				<!-- 配货 提货 暂停中 列表 -->
				<div class="col-md-12 tab-pane" id="pauseing"  v-show="requestType == 'pauseing'">
					<table class="table table-striped table-hover ntTable">
						<thead>
							<tr>
								<th width="4%">提货号</th>
								<th width="20%">产品</th>
								<th>箱规</th>
								<th width="6%">订单号</th>
								<th>数量</th>
								<th>合计</th>
								<th>目的地</th>
								<th>库存</th>
								<th>配货员</th>
								<th>暂停</th>
								<th>提货员</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<template v-if="pauseing != undefined && pauseing.length > 0">
								<template v-for="(listItem,listIndex) in pauseing">
									<tr v-for="(detailItem,detailIndex) in listItem.detail">
										<template v-if="detailIndex == 0">
											<td>{{formatUnit(listItem.id,'id')}}</td>
											<td>
												<div class="pro">
													<div class="pro-icon">
														<img :src="detailItem.proInfo.img_url" border="0" width="48px" height="48px">
													</div>
													<div class="pro-name">
														<small>{{formatUnit(detailItem.proInfo.prochar_id,'id') + (detailItem.proInfo.brand_name ? ' / '+detailItem.proInfo.brand_name : '') + (detailItem.proInfo.model ? ' / '+detailItem.proInfo.model : '') }}</small> <br />{{detailItem.proInfo.pro_name}}
													</div>
												</div>
											</td>
											<td align="right">
												{{formatUnit( detailItem.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
												{{detailItem.proInfo.ctn_size}}<small class="unit">CM</small>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>

										<td>{{detailItem.sale_id ? formatUnit(detailItem.sale_id,'id') : detailItem.targetName }}</td>
										<td align="right">
											<span class="label label-default f-1">{{formatUnit( (detailItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
											 {{formatUnit( detailItem.qty,'PCS')}}<small class="unit">PCS</small>
										</td>

										<template v-if="detailIndex == 0">
											<td align="right">
												<span class="text-primary f-2">{{formatUnit( (listItem.qty_sum/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
												{{formatUnit( listItem.qty_sum,'PCS')}}<small class="unit">PCS</small>
											</td>
										</template>
										<template v-else>
											<td></td>
										</template>

										<td>{{detailItem.warehouseArea_name}}</td>

										<template v-if="detailIndex == 0">
											<td>
												<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="库存位置" @mouseover="setpopper">
													库存
													<div class="content" style="display: none;">
														<div style="width:12vw">
															<table class="table">
																<tbody>
																	<tr>
																		<td>{{detailItem.storeInfo.store.name}}</td>
																		<td align="right">
																			{{formatUnit( (detailItem.storeInfo.store.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( detailItem.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																	<tr v-for="(storeInfoItem,storeInfoIndex) in detailItem.storeInfo.detail">
																		<td>{{storeInfoItem.name}}</td>
																		<td align="right">
																			{{formatUnit( (storeInfoItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																</tbody>
															</table>
														</div>
													</div>
												</button>
											</td>
											<td>
												<small class="blue">M.</small> {{detailItem.docker_name}} <br>
												<small class="blue">P.</small> {{detailItem.packer_name}} <br>
											</td>
											<td>{{listItem.pause_name}}<br><small>{{listItem.pause_time}}</small></td>
											<td>{{listItem.create_name}}<br><small>{{listItem.create_time}}</small></td>
											<td align="right">
												<button class="btn btn-sm btn-default" data-toggle="modal" data-target="#pickup_viewModal" @click="clickCheck(listIndex,'pauseing')">查看</button>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
										</template>
									</tr>
								</template>
							</template>
							<template v-else>
	                            <tr style="text-align: center;" >
	                                <td colspan="12" class="no_date" style="line-height: 20rem">{:lang('no_data')} </td>
	                            </tr>
							</template>
						</tbody>
					</table>
				</div>

				<!-- 配货 提货 已完成 列表 -->
				<div class="col-md-12 tab-pane" id="finish"  v-show="requestType == 'finish'">
					<table class="table table-striped table-hover ntTable">
						<thead>
							<tr>
								<th width="4%">提货号</th>
								<th width="20%">产品</th>
								<th>箱规</th>
								<th width="6%">订单号</th>
								<th>数量</th>
								<th>合计</th>
								<th>目的地</th>
								<th>库存</th>
								<th>提货员</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<template v-if="finish != undefined && finish.length > 0">
								<template v-for="(listItem,listIndex) in finish">
									<tr v-for="(detailItem,detailIndex) in listItem.detail">
										<template v-if="detailIndex == 0">
											<td>{{formatUnit(listItem.id,'id')}}</td>
											<td>
												<div class="pro">
													<div class="pro-icon">
														<img :src="detailItem.proInfo.img_url" border="0" width="48px" height="48px">
													</div>
													<div class="pro-name">
														<small>{{formatUnit(detailItem.proInfo.prochar_id,'id') + (detailItem.proInfo.brand_name ? ' / '+detailItem.proInfo.brand_name : '') + (detailItem.proInfo.model ? ' / '+detailItem.proInfo.model : '') }}</small> <br />{{detailItem.proInfo.pro_name}}
													</div>
												</div>
											</td>
											<td align="right">
												{{formatUnit( detailItem.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
												{{detailItem.proInfo.ctn_size}}<small class="unit">CM</small>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>

										<td>{{detailItem.sale_id ? formatUnit(detailItem.sale_id,'id') : detailItem.targetName }}</td>
										<td align="right">
											<span class="label label-default f-1">{{formatUnit( (detailItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
											 {{formatUnit( detailItem.qty,'PCS')}}<small class="unit">PCS</small>
										</td>

										<template v-if="detailIndex == 0">
											<td align="right">
												<span class="text-primary f-2">{{formatUnit( (listItem.qty_sum/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
												{{formatUnit( listItem.qty_sum,'PCS')}}<small class="unit">PCS</small>
											</td>
										</template>
										<template v-else>
											<td></td>
										</template>

										<td>{{detailItem.warehouseArea_name}}</td>

										<template v-if="detailIndex == 0">
											<td>
												<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="库存位置" @mouseover="setpopper">
													库存
													<div class="content" style="display: none;">
														<div style="width:12vw">
															<table class="table">
																<tbody>
																	<tr>
																		<td>{{detailItem.storeInfo.store.name}}</td>
																		<td align="right">
																			{{formatUnit( (detailItem.storeInfo.store.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( detailItem.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																	<tr v-for="(storeInfoItem,storeInfoIndex) in detailItem.storeInfo.detail">
																		<td>{{storeInfoItem.name}}</td>
																		<td align="right">
																			{{formatUnit( (storeInfoItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																</tbody>
															</table>
														</div>
													</div>
												</button>
											</td>
											<td>{{listItem.create_name}}<br><small>{{listItem.create_time}}</small></td>
											<td align="right">
												<button class="btn btn-sm btn-default" data-toggle="modal" data-target="#pickup_viewModal" @click="clickCheck(listIndex,'finish')">查看</button>
												<!-- <button class="btn btn-sm btn-primary" @click="finishCancel(listItem.id,listIndex)" v-if="detailItem.time_difference < 3600 || admin_id == 1 && ">取消完成</button> -->
												<button class="btn btn-sm btn-primary" @click="finishCancel(listItem.id,listIndex)" :disabled="isdisabled" v-if="auth_ids.indexOf(325) != -1">取消完成</button>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>
									</tr>
								</template>
							</template>
							<template v-else>
	                            <tr style="text-align: center;" >
	                                <td colspan="10" class="no_date" style="line-height: 20rem">{:lang('no_data')} </td>
	                            </tr>
							</template>
						</tbody>
					</table>
				</div>

				<!-- 配货 提货 取消 列表 -->
				<div class="col-md-12 tab-pane" id="cancel" v-show="requestType == 'cancel'">
					<table class="table table-striped table-hover ntTable">
						<thead>
							<tr>
								<th width="4%">提货号</th>
								<th width="20%">产品</th>
								<th>箱规</th>
								<th width="6%">订单号</th>
								<th>数量</th>
								<th>合计</th>
								<th>目的地</th>
								<th>库存</th>
								<th>配货员</th>
								<th>暂停</th>
								<th>提货员</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<template v-if="finish != undefined && finish.length > 0">
								<template v-for="(listItem,listIndex) in cancel">
									<tr v-for="(detailItem,detailIndex) in listItem.detail">
										<template v-if="detailIndex == 0">
											<td>{{formatUnit(listItem.id,'id')}}</td>
											<td>
												<div class="pro">
													<div class="pro-icon">
														<img :src="detailItem.proInfo.img_url" border="0" width="48px" height="48px">
													</div>
													<div class="pro-name">
														<small>{{formatUnit(detailItem.proInfo.prochar_id,'id') + (detailItem.proInfo.brand_name ? ' / '+detailItem.proInfo.brand_name : '') + (detailItem.proInfo.model ? ' / '+detailItem.proInfo.model : '') }}</small> <br />{{detailItem.proInfo.pro_name}}
													</div>
												</div>
											</td>
											<td align="right">
												{{formatUnit( detailItem.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
												{{detailItem.proInfo.ctn_size}}<small class="unit">CM</small>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
										</template>

										<td>{{detailItem.sale_id ? formatUnit(detailItem.sale_id,'id') : detailItem.targetName }}</td>
										<td align="right">
											<span class="label label-default f-1">{{formatUnit( (detailItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
											 {{formatUnit( detailItem.qty,'PCS')}}<small class="unit">PCS</small>
										</td>

										<template v-if="detailIndex == 0">
											<td align="right">
												<span class="text-primary f-2">{{formatUnit( (listItem.qty_sum/detailItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
												{{formatUnit( listItem.qty_sum,'PCS')}}<small class="unit">PCS</small>
											</td>
										</template>
										<template v-else>
											<td></td>
										</template>

										<td>{{detailItem.warehouseArea_name}}</td>

										<template v-if="detailIndex == 0">
											<td>
												<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="库存位置" @mouseover="setpopper">
													库存
													<div class="content" style="display: none;">
														<div style="width:12vw">
															<table class="table">
																<tbody>
																	<tr>
																		<td>{{detailItem.storeInfo.store.name}}</td>
																		<td align="right">
																			{{formatUnit( (detailItem.storeInfo.store.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( detailItem.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																	<tr v-for="(storeInfoItem,storeInfoIndex) in detailItem.storeInfo.detail">
																		<td>{{storeInfoItem.name}}</td>
																		<td align="right">
																			{{formatUnit( (storeInfoItem.qty/detailItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																</tbody>
															</table>
														</div>
													</div>
												</button>
											</td>
											<td>
												<small class="blue">M.</small> {{listItem.deliveryStaff_m}} <br>
												<small class="blue">P.</small> {{listItem.deliveryStaff_p}} <br>
											</td>
											<td>{{listItem.pause_name}}<br><small>{{listItem.pause_time}}</small></td>
											<td>{{listItem.create_name}}<br><small>{{listItem.create_time}}</small></td>
											<td align="right">
												<button class="btn btn-sm btn-default" data-toggle="modal" data-target="#pickup_viewModal" @click="clickCheck(listIndex,'cancel')">查看</button>
												<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#pickup_getbackModal" @click="getBack(listIndex,listItem.id)" v-if="auth_ids.indexOf(326) != -1">取回</button>
											</td>
										</template>
										<template v-else>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
										</template>
									</tr>
								</template>
							</template>
							<template v-else>
	                            <tr style="text-align: center;" >
	                                <td colspan="12" class="no_date" style="line-height: 20rem">{:lang('no_data')} </td>
	                            </tr>
							</template>
						</tbody>
					</table>
				</div>

                <ul class="pagination" id="pagination" v-show="viewPage!=0"></ul>
	  		</div>
		</div>

		<!--添加弹窗部分 开始-->

		<!-- 配货- 提货开始 弹窗开始 -->
		<div class="modal fade" id="pickup_startModal" tabindex="-1" role="dialog" aria-hidden="true">
		    <div class="modal-dialog modal-lg" style="width:60%">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                <h4 class="modal-title" >提货开始</h4>
		            </div>
		            <div class="modal-body">
		                <div class="row">
		                    <div class="col-md-12">
		                        <div class="alert alert-dismissable alert-info">
		                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		                            <p></p>
		                        </div>
		                    </div>
		                </div>
						<div class="row">
							<div class="col-md-6">
								<div class="col-md-8">
									<div class="pro">
										<div class="pro-icon">
											<img :src="pickupDetail.proInfo.img_url" border="0" width="48px" height="48px">
										</div>
										<div class="pro-name">
											<small>{{formatUnit(pickupDetail.proInfo.prochar_id,'id') + (pickupDetail.proInfo.brand_name ? ' / '+pickupDetail.proInfo.brand_name : '') + (pickupDetail.proInfo.model ? ' / '+pickupDetail.proInfo.model : '') }}</small> <br />{{pickupDetail.proInfo.pro_name}}
										</div>
									</div>
								</div>
								<div class="col-md-4 text-right">
									{{formatUnit( pickupDetail.proInfo.prochar_qty ,'PCS')}}<small class="unit">PCS/CTN</small><br>
									{{pickupDetail.proInfo.ctn_size}}<small class="unit">CM</small>
								</div>
								<div class="col-md-12">
									<table class="table table-hover ntTable">
										<thead>
											<tr>
												<th>位置</th>
												<th>库存</th>
												<th></th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>{{pickupDetail.storeInfo.store.name}}</td>
												<td align="right">
													<span class="text-primary">{{formatUnit( (pickupDetail.storeInfo.store.qty/pickupDetail.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( pickupDetail.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
											<tr v-for="(storeInfoItem,storeInfoIndex) in pickupDetail.storeInfo.detail">
												<td>{{storeInfoItem.name}}</td>
												<td align="right">
													{{formatUnit( (storeInfoItem.qty/pickupDetail.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
		                    <div class="col-md-6">
		                        <table class="table table-striped table-hover ntTable">
									<thead>
										<tr>
											<th>订单号</th>
											<th>箱数</th>
											<th>数量</th>
											<th>目的地</th>
										</tr>
									</thead>
		                            <tbody>
										<tr v-for="(rightListItem,rightListIndex) in pickupDetailRightList">
											<td>{{rightListItem.sale_id ? formatUnit(rightListItem.sale_id,'id') : rightListItem.targetName }}</td>
											<td align="right">
												<span class="label label-default f-1">{{formatUnit( (rightListItem.qty/rightListItem.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
											</td>
											<td align="right">
												{{formatUnit( rightListItem.qty,'PCS')}}<small class="unit">PCS</small>
											</td>
											<td>{{rightListItem.warehouseArea_name}}</td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td colspan="5" align="right">
												合计提货数量:  <span class="label label-primary f-1">{{formatUnit( (pickupQtyCount.qty/pickupQtyCount.prochar_qty),'CTN')}}</span><small class="unit">CTN</small> /
												{{formatUnit( pickupQtyCount.qty,'PCS')}}<small class="unit">PCS</small>
											</td>
										</tr>
									</tfoot>
		                        </table>
		                    </div>
		                </div>
					</div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>取消</button>
		                <button type="button" class="btn btn-primary" style="padding-left:24px;padding-right:24px" @click="savePickupDetail()" :disabled="isdisabled">
							<span class="fa fa-dolly"></span>开始提货
						</button>
		            </div>
		        </div>
		    </div>
		</div>

		<!-- 配货- 提货查看 弹窗开始 -->
		<div class="modal fade" id="pickup_viewModal" tabindex="-1" role="dialog" aria-hidden="true">
		    <div class="modal-dialog modal-lg" style="width:60%">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                <h4 class="modal-title" >提货查看</h4>
		            </div>
		            <div class="modal-body">
		                <div class="row">
		                    <div class="col-md-12">
		                        <div class="alert alert-dismissable alert-info">
		                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		                        </div>
		                    </div>
		                </div>
						<div class="row">
							<div class="col-md-5">
								<div class="col-md-8">
									<div class="pro">
										<div class="pro-icon">
											<img :src="pickupingCheck.proInfo.img_url" border="0" width="48px" height="48px">
										</div>
										<div class="pro-name">
											<small>{{formatUnit(pickupingCheck.proInfo.prochar_id,'id') + (pickupingCheck.proInfo.brand_name ? ' / '+pickupingCheck.proInfo.brand_name : '') + (pickupingCheck.proInfo.model ? ' / '+pickupingCheck.proInfo.model : '') }}</small> <br />{{pickupingCheck.proInfo.pro_name}}
										</div>
									</div>
								</div>
								<div class="col-md-4 text-right">
									{{formatUnit( pickupingCheck.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
									{{pickupingCheck.proInfo.ctn_size}}<small class="unit">CM</small>
								</div>
								<div class="col-md-12">
									<table class="table table-hover ntTable">
										<thead>
											<tr>
												<th>位置</th>
												<th>库存</th>
												<th></th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>{{pickupingCheck.storeInfo.store.name}}</td>
												<td align="right">
													<span class="text-primary">{{formatUnit( (pickupingCheck.storeInfo.store.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( pickupingCheck.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
											<tr v-for="(pickupingstoreItem,pickupingIndex) in pickupingCheck.storeInfo.detail">
												<td>{{pickupingstoreItem.name}}</td>
												<td align="right">
													{{formatUnit( (pickupingstoreItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( pickupingstoreItem.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
		                    <div class="col-md-7">
		                        <table class="table table-striped table-hover ntTable">
									<thead>
										<tr>
											<th>订单号</th>
											<th>箱数</th>
											<th>数量</th>
											<th>缺少</th>
											<th>数量</th>
											<th>目的地</th>
										</tr>
									</thead>
		                            <tbody>
										<tr v-for="(pickupingCheckRightItem,pickupingCheckRightIndex) in pickupingCheck.right.detail">
											<td>{{pickupingCheckRightItem.sale_id ? formatUnit(pickupingCheckRightItem.sale_id,'id') : pickupingCheckRightItem.targetName }}</td>
											<td align="right">
												<span class="label label-default f-1">{{formatUnit( (pickupingCheckRightItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
											</td>
											<td align="right">
												{{formatUnit( pickupingCheckRightItem.qty,'PCS')}}<small class="unit">PCS</small>
											</td>
											<td align="right">
												{{ (pickupingCheckRightItem.qty - pickupingCheck.storeInfo.store.qty) > 0 ? (pickupingCheckRightItem.qty - pickupingCheck.storeInfo.store.qty)/pickupingCheck.proInfo.prochar_qty : '-' }}<small class="unit">CTN</small>
											</td>
											<td align="right">
												{{ (pickupingCheckRightItem.qty - pickupingCheck.storeInfo.store.qty) > 0 ? pickupingCheckRightItem.qty - pickupingCheck.storeInfo.store.qty : '-' }}<small class="unit">PCS</small>
											</td>
											<td>{{pickupingCheckRightItem.warehouseArea_name}}</td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td colspan="7" align="right">
												合计提货数量:  <span class="label label-primary f-1">{{formatUnit( (pickupingCheck.right.qty_sum/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small> /
												{{formatUnit( pickupingCheck.right.qty_sum,'PCS')}}<small class="unit">PCS</small>
											</td>
										</tr>
									</tfoot>
		                        </table>
		                    </div>
		                </div>
					</div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>取消</button>
		            </div>
		        </div>
		    </div>
		</div>

		<!-- 配货- 提货完成 弹窗开始 -->
		<div class="modal fade" id="pickup_finishModal" tabindex="-1" role="dialog" aria-hidden="true">
		    <div class="modal-dialog modal-lg" style="width:60%">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                <h4 class="modal-title" >提货完成登记</h4>
		            </div>
		            <div class="modal-body">
		                <div class="row">
		                    <div class="col-md-12">
		                        <div class="alert alert-dismissable alert-info">
		                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		                            <p></p>
		                        </div>
		                    </div>
		                </div>
						<div class="row">
							<div class="col-md-6">
								<div class="col-md-8">
									<div class="pro">
										<div class="pro-icon">
											<img :src="pickupingCheck.proInfo.img_url" border="0" width="48px" height="48px">
										</div>
										<div class="pro-name">
											<small>{{formatUnit(pickupingCheck.proInfo.prochar_id,'id') + (pickupingCheck.proInfo.brand_name ? ' / '+pickupingCheck.proInfo.brand_name : '') + (pickupingCheck.proInfo.model ? ' / '+pickupingCheck.proInfo.model : '') }}</small> <br />{{pickupingCheck.proInfo.pro_name}}
										</div>
									</div>
								</div>
								<div class="col-md-4 text-right">
									{{formatUnit( pickupingCheck.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
									{{pickupingCheck.proInfo.ctn_size}}<small class="unit">CM</small>
								</div>
								<div class="col-md-12">
									<table class="table table-hover ntTable">
										<thead>
											<tr>
												<th>位置</th>
												<th>库存</th>
												<th></th>
												<th width="30%">提出箱数</th>
												<th>数量</th>
											</tr>
										</thead>
										<tbody>

											<tr>
												<td>{{pickupingCheck.storeInfo.store.name}}</td>
												<td align="right">
													<span class="text-primary">{{formatUnit( (Math.floor(pickupingCheck.storeInfo.store.qty/pickupingCheck.proInfo.prochar_qty)),'CTN') }}</span><small class="unit">CTN</small><br>
													<span class="text-primary">{{formatUnit( (pickupingCheck.storeInfo.store.qty-(Math.floor(pickupingCheck.storeInfo.store.qty/pickupingCheck.proInfo.prochar_qty)*pickupingCheck.proInfo.prochar_qty)),'PCS') }}</span><small class="unit">PCS</small>
												</td>
												<td align="right">{{formatUnit( pickupingCheck.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
												<td></td>
												<td></td>
											</tr>
											<tr v-for="(pickupingstoreItem,pickupingstoreIndex) in pickupingCheck.storeInfo.detail">
												<td>{{pickupingstoreItem.name}}</td>
												<td align="right">
													{{formatUnit( (pickupingstoreItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small><br>
													{{formatUnit( (pickupingstoreItem.qty - (Math.floor(pickupingstoreItem.qty/pickupingCheck.proInfo.prochar_qty)*pickupingCheck.proInfo.prochar_qty)),'PCS') }}<small class="unit">PCS</small>
												</td>
												<td align="right">{{formatUnit( pickupingstoreItem.qty,'PCS')}}<small class="unit">PCS</small></td>
												<td>
													<input type="number" :id="'pickupingFulfil_'+pickupingstoreIndex" class="form-control text-right" v-model="pickupingstoreItem.inputValue" @input="setInputMax(pickupingstoreItem.qty/pickupingCheck.proInfo.prochar_qty,'pickupingFulfil_',pickupingstoreIndex)">
												</td>
												<td align="right">{{formatUnit( (pickupingstoreItem.inputValue*pickupingCheck.proInfo.prochar_qty),'PCS')}}<small class="unit">PCS</small></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
		                    <div class="col-md-6">
		                        <table class="table table-striped table-hover ntTable">
									<thead>
										<tr>
											<th>订单号</th>
											<th>箱数</th>
											<th>数量</th>
											<th>目的地</th>
										</tr>
									</thead>
		                            <tbody>
										<tr v-for="(pickupingCheckRightItem,pickupingCheckRightIndex) in pickupingCheck.right.detail">
											<td>{{pickupingCheckRightItem.sale_id ? formatUnit(pickupingCheckRightItem.sale_id,'id') : pickupingCheckRightItem.targetName }}</td>
											<td align="right">
												<span class="label label-default f-1">{{formatUnit( (pickupingCheckRightItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
											</td>
											<td align="right">
												{{formatUnit( (pickupingCheckRightItem.qty/pickupingCheck.proInfo.prochar_qty),'PCS') }}<small class="unit">PCS</small>
											</td>
											<!-- <td>{{pickupingCheckRightItem.warehouseArea_name}}</td> -->
											<td class="col-md-5">
					                            <!-- <select class="form-control" name="" v-model="pickupingCheckRightItem.area_id ? pickupingCheckRightItem.area_id : pickupingCheck.right.destination[0].id" v-if="pickupingCheck.right.destination.length > 0"> -->
					                            <select class="form-control" name="" v-model="pickupingCheckRightItem.area_id" v-if="pickupingCheck.right.destination.length > 0">
					                                <option value="0">请选择位置</option>
					                                <option :value="destinationItem.id" v-for="(destinationItem,destinationIndex) in pickupingCheck.right.destination">{{destinationItem.name}}</option>
					                            </select>
											</td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td colspan="7" align="right">
												合计提货数量:  <span class="label label-primary f-1">{{formatUnit( (pickupingCheck.right.qty_sum/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small> /
												{{formatUnit( pickupingCheck.right.qty_sum,'PCS')}}<small class="unit">PCS</small>
											</td>
										</tr>
									</tfoot>
		                        </table>
		                    </div>
		                </div>
					</div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>取消</button>
		                <button type="button" class="btn btn-primary" style="padding-left:24px;padding-right:24px" @click="savePickupingFulfil('save')" :disabled="isdisabled">
							<span class="fa fa-dolly"></span>提货完成
						</button>
		            </div>
		        </div>
		    </div>
		</div>

		<!-- 配货-提货 取回登记 弹窗开始 -->
		<div class="modal fade" id="pickup_getbackModal" tabindex="-1" role="dialog" aria-hidden="true">
		    <div class="modal-dialog modal-lg" style="width:70%">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                <h4 class="modal-title" >提货取回登记</h4>
		            </div>
		            <div class="modal-body">
		                <div class="row">
		                    <div class="col-md-12">
		                        <div class="alert alert-dismissable alert-info">
		                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		                        </div>
		                    </div>
		                </div>
						<div class="row">
							<div class="col-md-5">
								<div class="col-md-8">
									<div class="pro">
										<div class="pro-icon">
											<img :src="pickupingCheck.proInfo.img_url" border="0" width="48px" height="48px">
										</div>
										<div class="pro-name">
											<small>{{formatUnit(pickupingCheck.proInfo.prochar_id,'id') + (pickupingCheck.proInfo.brand_name ? ' / '+pickupingCheck.proInfo.brand_name : '') + (pickupingCheck.proInfo.model ? ' / '+pickupingCheck.proInfo.model : '') }}</small> <br />{{pickupingCheck.proInfo.pro_name}}
										</div>
									</div>
								</div>
								<div class="col-md-4 text-right">
									{{formatUnit( pickupingCheck.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
									{{pickupingCheck.proInfo.ctn_size}}<small class="unit">CM</small>
								</div>
								<div class="col-md-12">
									<table class="table table-hover ntTable">
										<thead>
											<tr>
												<th>位置</th>
												<th>库存</th>
												<th></th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>{{pickupingCheck.storeInfo.store.name}}</td>
												<td align="right">
													<span class="text-primary">{{formatUnit( (pickupingCheck.storeInfo.store.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( pickupingCheck.storeInfo.store.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
											<tr v-for="(pickupingstoreItem,pickupingIndex) in pickupingCheck.storeInfo.detail">
												<td>{{pickupingstoreItem.name}}</td>
												<td align="right">
													{{formatUnit( (pickupingstoreItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
												</td>
												<td align="right">{{formatUnit( pickupingstoreItem.qty,'PCS')}}<small class="unit">PCS</small></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
		                    <div class="col-md-7">
		                        <table class="table table-striped table-hover ntTable">
									<thead>
										<tr>
											<th>订单号</th>
											<th>数量</th>
											<th>提货</th>
											<th>目的地</th>
											<th width="25%">取回</th>
											<th width="15%">数量</th>
										</tr>
									</thead>
		                            <tbody>
										<tr v-for="(pickupingCheckRightItem,pickupingCheckRightIndex) in pickupingCheck.right.detail">
											<td>{{pickupingCheckRightItem.sale_id ? formatUnit(pickupingCheckRightItem.sale_id,'id') : pickupingCheckRightItem.targetName }}</td>
											<td align="right">
												<span class="label label-default f-1">{{formatUnit( (pickupingCheckRightItem.qty/pickupingCheck.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small><br>
												{{formatUnit( pickupingCheckRightItem.qty,'PCS')}}<small class="unit">PCS</small>
											</td>
											<td align="right">
												<button class="btn btn-sm btn-default" data-toggle="popover" placement="right" title="提货位置" @mouseover="setpopper">
													详情
													<div class="content" style="display: none;">
														<div style="width:12vw">
															<table class="table">
																<tbody>

																	<tr v-for="(storeInfoItem,storeInfoIndex) in pickupingCheckRightItem.placeInfo">
																		<td>{{storeInfoItem.placeName}}</td>
																		<td align="right">
																			{{formatUnit( (storeInfoItem.qty/pickupingCheckRightItem.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
																		</td>
																		<td align="right">{{formatUnit( storeInfoItem.qty,'PCS')}}<small class="unit">PCS</small></td>
																	</tr>

																</tbody>
															</table>
														</div>
													</div>
												</button>
											</td>
											<td>{{pickupingCheckRightItem.warehouseArea_name}}</td>
											<td>
												<select name="" id="placeId" class="form-control" v-model="pickupingCheckRightItem.placeSelected">
													<option :value="-1">请选择仓库位置</option>
													<option :value="placeListItem.id" v-for="(placeListItem,placeListIndex) in placeList">{{placeListItem.name}}</option>
													<!-- <option value="">store.place_id</option> -->
												</select>
											</td>
											<td><input type="number" class="form-control text-right" placeholder="取回箱数" @input="getBackInputMAx(pickupingCheckRightItem.qty/pickupingCheck.proInfo.prochar_qty,pickupingCheckRightIndex)"></td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td colspan="7" align="right">
												合计取回数量:  <span class="label label-primary f-1">{{pickupingCheck.right.qty_sum/pickupingCheck.proInfo.prochar_qty}}</span><small class="unit">CTN</small> /
												{{pickupingCheck.right.qty_sum}}<small class="unit">PCS</small>
											</td>
										</tr>
									</tfoot>
		                        </table>
		                    </div>
		                </div>
					</div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>取消</button>
						<button type="button" class="btn btn-primary" style="padding-left:24px;padding-right:24px" @click="saveCancel()">
							<span class="fa fa-save"></span>保存
						</button>
		            </div>
		        </div>
		    </div>
		</div>

		<!-- 配货- 缺货登记 弹窗开始 -->
		<div class="modal fade" id="pickup_lostModal" tabindex="-1" role="dialog" aria-hidden="true">
		    <div class="modal-dialog modal-lg" style="width:60%">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                <h4 class="modal-title" >提货缺货登记</h4>
		            </div>
		            <div class="modal-body">
		                <div class="row">
		                    <div class="col-md-12">
		                        <div class="alert alert-dismissable alert-info">
		                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		                            <p></p>
		                        </div>
		                    </div>
		                </div>
						<div class="row">
							<div class="col-md-5">
								<div class="pro">
									<div class="pro-icon">
										<img :src="pickupMissingData.proInfo.img_url" border="0" width="48px" height="48px">
									</div>
									<div class="pro-name">
										<small>{{ formatUnit(pickupMissingData.proInfo.prochar_id,'id') + (pickupMissingData.proInfo.brand_name ? ' / ' + pickupMissingData.proInfo.brand_name : '') + (pickupMissingData.proInfo.model ? ' / ' + pickupMissingData.proInfo.model : '') }}</small><br>
										{{pickupMissingData.proInfo.pro_name}}
									</div>
								</div>
							</div>
							<div class="col-md-3 text-right">
								&nbsp;<br>
								{{formatUnit(pickupMissingData.proInfo.prochar_qty,'PCS')}}<small class="unit">PCS/CTN</small><br>
								{{pickupMissingData.proInfo.ctn_size}}<small class="unit">CM</small>
							</div>
							<div class="col-md-2">
								<div class="unit">提货数量</div>
								<div class="text-right">
									<span class="text-primary f-1">{{ formatUnit(Math.floor(pickupMissingData.qty/pickupMissingData.proInfo.prochar_qty),'CTN') }}</span><small class="unit">CTN</small><br>
									{{ formatUnit(pickupMissingData.qty-(Math.floor(pickupMissingData.qty/pickupMissingData.proInfo.prochar_qty)*pickupMissingData.proInfo.prochar_qty),'PCS') }}<small class="unit">PCS</small>
								</div>
							</div>
							<div class="col-md-2">
								<span class="unit">缺少数量</span><br>
								<input type="number" class="form-control text-right" id="pickupMissingQty" v-model="pickupMissingData.pickupMissingQty">
							</div>
						</div>
						<div class="row">
							<div class="col-md-5">
								<table class="table table-hover ntTable">
									<thead>
										<tr>
											<th>位置</th>
											<th>库存</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>本地库存</td>
											<td align="right">
												<span class="text-primary">{{formatUnit(Math.floor(pickupMissingData.storeInfo.store.qty/pickupMissingData.proInfo.prochar_qty),'CTN')}}</span><small class="unit">CTN</small>
											</td>
											<td align="right">{{ formatUnit( (pickupMissingData.storeInfo.store.qty-(Math.floor(pickupMissingData.storeInfo.store.qty/pickupMissingData.proInfo.prochar_qty)*pickupMissingData.proInfo.prochar_qty)),'PCS')}}<small class="unit">PCS</small></td>
										</tr>
										<tr v-for="(storeInfoDetailItem,storeInfoDetailIndex) in pickupMissingData.storeInfo.detail">
											<td>{{storeInfoDetailItem.name}}</td>
											<td align="right">
												{{formatUnit(Math.floor(storeInfoDetailItem.qty/pickupMissingData.proInfo.prochar_qty),'CTN')}}<small class="unit">CTN</small>
											</td>
											<td align="right">{{formatUnit((storeInfoDetailItem.qty-Math.floor(storeInfoDetailItem.qty/pickupMissingData.proInfo.prochar_qty)*pickupMissingData.proInfo.prochar_qty),'CTN')}}<small class="unit">PCS</small></td>
										</tr>
									</tbody>
								</table>
							</div>
		                    <div class="col-md-7">
		                        <table class="table table-striped table-hover ntTable">
									<thead>
										<tr>
											<th></th>
											<th>订单号</th>
											<th>箱数</th>
											<th>数量</th>
											<th>目的地</th>
										</tr>
									</thead>
		                            <tbody>
										<tr v-for="(saleListItem,saleListIndex) in pickupMissingData.saleList">
											<th>{{saleListIndex+1}}</th>
											<td>{{saleListItem.sale_id ? formatUnit(saleListItem.sale_id,'id') : saleListItem.target_name}}</td>
											<td align="right">
												<span class="label label-default f-1">{{ formatUnit(Math.floor(saleListItem.qty/pickupMissingData.proInfo.prochar_qty),'CTN') }}</span><small class="unit">CTN</small>
											</td>
											<td align="right">
												{{ formatUnit( (saleListItem.qty-Math.floor(saleListItem.qty/pickupMissingData.proInfo.prochar_qty)*pickupMissingData.proInfo.prochar_qty),'PCS') }}
												<small class="unit">PCS</small>
											</td>
											<td>{{saleListItem.area_name}}</td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td colspan="5" align="right">
												合计提货数量:  <span class="label label-primary f-1">{{ Math.floor(pickupMissingData.qtySum/pickupMissingData.proInfo.prochar_qty) }}</span><small class="unit">CTN</small> /
												{{ formatUnit((pickupMissingData.qtySum-Math.floor(pickupMissingData.qtySum/pickupMissingData.proInfo.prochar_qty)*pickupMissingData.proInfo.prochar_qty),'PCS') }}<small class="unit">PCS</small>
											</td>
										</tr>
									</tfoot>
		                        </table>
		                    </div>
		                </div>
					</div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>取消</button>
		                <button type="button" class="btn btn-warning" style="padding-left:24px;padding-right:24px" @click="pickupMissing('','save')" :disabled="isdisabled">
							<span class="fa fa-ban"></span>通知配货暂停
						</button>
		            </div>
		        </div>
		    </div>
		</div>

	</div>
</div>
<script type="text/javascript">
  	setInterval(function() {
  		var data = $('.main-list');
        $.each(data, (key, value) => {
        	var time = Date.parse(new Date())/1000 - $('.main-list').eq(key).attr('oldTime');
        	var s = 0	// 秒
        	var m = 0	// 分
        	var h = 0	// 时
        	if(time > 59 ){
        		s = time%60;	// 取余
        		if(s < 10) s= '0'+ s
        		m = Math.floor(time/60)
        		if(m >= 60 ) m = (m%60)
        		if(m < 10) m= '0'+ m
        		h = Math.floor(time/3600)
        		if(h < 10) h= '0'+ h
        	}
        	// console.log(h+':'+m+":"+s)
        	$('.main-list').eq(key).text( h+':'+m+":"+s );
        })
  	}, 1000);
</script>
<script type="text/javascript" src="/static/Admin/js/saledocker.js"></script>
{include file="public/foot"/}